package cn.dac.service.impl;

import cn.dac.dao.SysRoleMapper;
import cn.dac.entity.security.SysRole;
import cn.dac.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService{
     @Autowired
    private SysRoleMapper sysRoleMapper;

   @Override
    public List<SysRole> findByUserId(String userId) {
        return sysRoleMapper.findByUserId(userId);
    }
}
